home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / pwrwin.exe / NODE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-10-18  |  556 b   |  24 lines

  1. #define GN_NEXT     0x01
  2. #define GN_PREV     0x02
  3. #define GN_LAST     0x03
  4. #define GN_FIRST    0x04
  5.  
  6.  
  7. struct Node          { struct Node *PrevNode;
  8.             struct Node *NextNode;
  9.             int Item;
  10.               };
  11.  
  12. struct NodeHead       { struct Node *FirstNode;
  13.             struct Node *LastNode;
  14.             int count;
  15.               };
  16.  
  17. typedef struct NodeHead NODEHEAD;
  18.  
  19. int GetNode ( struct NodeHead *, int, int);
  20. int DeleteNode ( struct NodeHead *, int);
  21. int DeleteNodeList ( struct NodeHead *);
  22. int AddNode (struct NodeHead *, int);
  23. struct Node *FindNode ( struct NodeHead *, int);
  24.